package Dao;

import pojo.Book;

import java.util.List;

public interface BookDao {
    int addBook(Book book);
    int deleteBookById(Integer id);
    int updateBook(Book book);
    Book queryBookById(Integer id);
    List <Book> queryAllBook();
    Long queryForPageTotalCount();
    List<Book> queryForitems(int begin,int pageSize);
    Long queryForPageTotalCount(int min,int max);
    List<Book> qurtyForPageItems(int begin,int pageSize,int min,int max);
}
